﻿<UserControl x:Class="UCL.Powersource.Views.SettingsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                xmlns:vs="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.11.0"
             Background="{DynamicResource {x:Static vs:VsBrushes.ToolWindowBackgroundKey}}"
             Foreground="{DynamicResource {x:Static vs:VsBrushes.WindowTextKey}}"
             mc:Ignorable="d" 
             d:DesignHeight="318" d:DesignWidth="348">
    <UserControl.Resources>
        <ResourceDictionary >
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="VSLikeStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>


    </UserControl.Resources>
    <Border BorderThickness="3" BorderBrush="LightGray" Name="TopBorder">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>

                <Border BorderThickness="0.5" BorderBrush="LightGray" Grid.Row="0">
                    <Grid HorizontalAlignment="Stretch">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="170"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="20"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Grid.Column="0"  TextAlignment="Center">Disassembler to be used:</TextBlock>
                        <TextBox Grid.Column="1" x:Name="IldasmPath" IsReadOnly="True" HorizontalAlignment="Stretch"></TextBox>
                        <Button Grid.Column="2" Click="SelectIldasmFile" Width="20" Style="{StaticResource DefaultButtonStylePowersource}">...</Button>
                    </Grid>
                </Border>
                <Border Grid.Row="1" BorderThickness="0.5" BorderBrush="LightGray">
                    <Grid  HorizontalAlignment="Stretch">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="170"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="20"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Grid.Column="0"  TextAlignment="Center">Build download path:</TextBlock>
                        <TextBox Grid.Column="1" x:Name="LocalDropBasePath" IsReadOnly="True" HorizontalAlignment="Stretch"></TextBox>
                        <Button Grid.Column="2" Click="SelectDownloadPath" Width="20" Style="{StaticResource DefaultButtonStylePowersource}">...</Button>
                    </Grid>
                </Border>
                <Border Grid.Row="2" BorderThickness="0.5" BorderBrush="LightGray">
                    <Grid  HorizontalAlignment="Stretch">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="170"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="20"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Grid.Column="0" TextAlignment="Center">Export path:</TextBlock>
                        <TextBox Grid.Column="1" x:Name="ExportPath" IsReadOnly="True" HorizontalAlignment="Stretch"></TextBox>
                        <Button Grid.Column="2" Click="SelectExportPath" Width="20" Style="{StaticResource DefaultButtonStylePowersource}">...</Button>
                    </Grid>
                </Border>
                <Border Grid.Row="3" BorderThickness="0.5" BorderBrush="LightGray">
                    <Grid HorizontalAlignment="Stretch">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="170"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Grid.Column="0"  TextAlignment="Center">Database for Code Index storage:</TextBlock>
                        <TextBox Grid.Column="1" x:Name="CodeIndexDBServer" HorizontalAlignment="Stretch"></TextBox>
                    </Grid>
                </Border>
                <Border Grid.Row="4" BorderThickness="0.5" BorderBrush="LightGray">
                    <Grid HorizontalAlignment="Stretch">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="170"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Grid.Column="0"  TextAlignment="Center">Powersource Service URL:</TextBlock>
                        <TextBox Grid.Column="1" x:Name="WebServiceUrl" HorizontalAlignment="Stretch"></TextBox>
                    </Grid>
                </Border>
<Border Grid.Row="5" BorderThickness="0.5" BorderBrush="LightGray">
                    <Grid HorizontalAlignment="Stretch">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="170"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Grid.Column="0"  TextAlignment="Center">Base project name:</TextBlock>
                        <TextBox Grid.Column="1" x:Name="DefaultProjectName" HorizontalAlignment="Stretch"></TextBox>
                    </Grid>
                </Border>
            </Grid>
            <Border Grid.Row="2" Margin="0,10" HorizontalAlignment="Stretch" Background="{DynamicResource {x:Static vs:VsBrushes.CommandBarMenuBackgroundGradientKey}}" >
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" >
                    <Button x:Name="SaveChanges" Width="90" Style="{StaticResource DefaultButtonStylePowersource}">SAVE AND EXIT</Button>
                    <Button x:Name="RequestResetToDefaults" Width="120" Style="{StaticResource DefaultButtonStylePowersource}">RESET TO DEFAULTS</Button>
                    <Button x:Name="RequestExit" Width="90" Style="{StaticResource DefaultButtonStylePowersource}">EXIT</Button>
                </StackPanel>
            </Border>


        </Grid>
    </Border>
</UserControl>
